package main

import "fmt"

func main() {
	array := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
	fmt.Println(array, len(array), cap(array))
	fmt.Printf("%p %p\n", array, &array)
	array = append(array[:5])
	fmt.Println(array, len(array), cap(array))
	fmt.Printf("%p %p\n", array, &array)
	array = array[:0]
	fmt.Println(array, len(array), cap(array))
	fmt.Printf("%p %p\n", array, &array)

	var strs []*string = make([]*string, 0, 3)
	tmp := "aaaa"
	strs = append(strs, &tmp)
	*strs[0] += "bb"
	fmt.Printf("------------------------\n")
	for k, v := range strs {
		fmt.Printf("%d->%s\n", k, *v)
	}

	num := 100
	str := string(num)
	fmt.Println(str)
}
